Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating Percentage Tables | asdocx

    pctab for Creating Percentage Tables


    I have added pctab sub-command to asdocx. It makes it easy to generate percentage tables from your data. With just one line of code, you can produce a neatly formatted table showing percentages of different variables broken down by a grouping variable.

    The syntax for pctab is simple:
    asdocx pctab varlist, by(groupby)
    Where:
    • varlist is a list of variables for which you want percentages calculated. These will become the rows in your table.
    • by() specifies a single grouping variable. This will create a separate column for each unique value of the grouping variable.
    You may like to visit this page for more details and example.
    Last edited by Attaullah Shah; 19 Jul 2023, 01:38.
    Regards
    --------------------------------------------------
    Attaullah Shah, PhD.
    Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
    FinTechProfessor.com
    https://asdocx.com
    Check out my asdoc program, which sends outputs to MS Word.
    For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.
Working...
X